/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entityprojet;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author T.Ron
 */
@Embeddable
public class BanquetPK implements Serializable {
    @Basic(optional = false)
    @Column(name = "ID_BANQUE")
    private int idBanque;
    @Basic(optional = false)
    @Column(name = "ID_CT_BQ")
    private int idCtBq;

    public BanquetPK() {
    }

    public BanquetPK(int idBanque, int idCtBq) {
        this.idBanque = idBanque;
        this.idCtBq = idCtBq;
    }

    public int getIdBanque() {
        return idBanque;
    }

    public void setIdBanque(int idBanque) {
        this.idBanque = idBanque;
    }

    public int getIdCtBq() {
        return idCtBq;
    }

    public void setIdCtBq(int idCtBq) {
        this.idCtBq = idCtBq;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) idBanque;
        hash += (int) idCtBq;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof BanquetPK)) {
            return false;
        }
        BanquetPK other = (BanquetPK) object;
        if (this.idBanque != other.idBanque) {
            return false;
        }
        if (this.idCtBq != other.idCtBq) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entityprojet.BanquetPK[ idBanque=" + idBanque + ", idCtBq=" + idCtBq + " ]";
    }
    
}
